<script type="text/javascript">
//查询角色信息
function aidQueryUser(page) {
	var parm = $('#aidQueryUserForm').serialize() + (page != null ? ('&page=' + page) : '');
	var url = create_url('emp-aidQueryList');
	$.ajax({type:'POST', url:url, data:parm,
		success: function(result) {
			$('#aidQueryUserResultList').html(result);
		}
	});
}

function chooseUser(code, realName) {
	$('#${id}').val(code);
	$('#${name}').val(realName);

	$.fn.colorbox.close();
}
</script>

<#import "/freemarker/modeltype_entity.ftl" as mte>

<div class="ui-widget-content" style="height:568px;">
<form id="aidQueryUserForm">
	<table class="search_term_table">
		<tr>
			<td>Email</td>
			<td><input type="text" name="email" /></td>
			<td>姓名</td>
			<td><input type="text" name="realName" /></td>
			<td>角色</td>
			<td><@mte.Role id='rc' name='rc' nullstr='所有' /></td>
			<td style="text-align: right;">
				<a href="#" class="link_btn ui-state-default ui-corner-all" onclick="javascript: aidQueryUser(); return false;">
					<span class="ui-icon ui-icon-search"></span>&nbsp;查&nbsp;&nbsp;询&nbsp;
				</a>
			</td>
		</tr>
	</table>
</form>
<div id="aidQueryUserResultList"></div>
</div>
